package com.bean;

import java.io.Serializable;

public class Commodity implements Serializable {

    private Integer id;
    private Integer stock;
    private String cdyName;
    private Double price;
    private Integer state;
    private Integer spare;

    public Commodity() {
    }

    public Commodity(Integer id) {
        this.id = id;
    }

    public Commodity(Integer id, Integer stock, String cdyName, Double price, Integer state, Integer spare) {
        this.id = id;
        this.stock = stock;
        this.cdyName = cdyName;
        this.price = price;
        this.state = state;
        this.spare = spare;
    }

    @Override
    public String toString() {
        return "Commodity{" +
                "id=" + id +
                ", stock=" + stock +
                ", cdyName='" + cdyName + '\'' +
                ", price=" + price +
                ", state=" + state +
                ", spare=" + spare +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public String getCdyName() {
        return cdyName;
    }

    public void setCdyName(String cdyName) {
        this.cdyName = cdyName;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getSpare() {
        return spare;
    }

    public void setSpare(Integer spare) {
        this.spare = spare;
    }
}
